From f1f65dda6c6230b3d74f957a9625a175998aea69 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 1 Oct 2002 18:27:01 +0000 Subject: [PATCH] Fix braino in cleansing functions. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@105 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/magproto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 35961145b..60bd44ac4 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -157,7 +157,7 @@ m315_cleanse(char *istring) static char m315_valid_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789"; for (o=rstring,i=istring; *i; i++) { - if (strchr(m315_valid_chars, *o)) { + if (strchr(m315_valid_chars, *i)) { *o++ = toupper(*i); } } @@ -178,8 +178,8 @@ m330_cleanse(char *istring) char *o, *i; for (o=rstring,i=istring; *i;i++) { - if (strchr(m330_valid_chars, *o)) { - *o++ = (*i); + if (strchr(m330_valid_chars, *i)) { + *o++ = *i; } } *o = 0; -- 2.30.2